<form action="" method="post" enctype="multipart/form-data" id="form_submit" class="form_submit">
  {if $smarty.get.type eq "edit"}
  	<input type="hidden" name="type" value="editt" />
    <input type="hidden" name="id" value="{$smarty.get.pageid}" />
  {else}
  	<input type=hidden name="type" value="add" />
  {/if}
  
  <input type="hidden" name="parent" value="{$smarty.get.id}" />
  <div id="admin_tabs_main_content"> 
    <!-- TABS_NAME -->
    <ul>
      <li><a href="#General">Содержимое файла</a></li>
    </ul>
    <!-- END TABS_NAME --> 
    <!-- ОБЩИЕ -->
    <div id="dialog-form-alert"></div>
    <div id="General">        
      <p class="position_input"><textarea name="text" rows="10">{$Field.text}</textarea></p> 
    </div>
  </div>
  <div id="posbutton">
    <a href="javascript:void(0);" class="ui_wo_buttons but_save ui-state-default ui-corner-all"><span class="ui-icon ui-icon-disk"></span>Сохранить</a>
  </div>
</form>
<script type="text/javascript">
$(function()
{
	var eForm = $("#form_submit");
	$(".but_save").live("click", function(){
		eForm.attr("action", '?m=configuration&id={$smarty.get.id}&parent={$smarty.get.parent}').submit();
	});	
});
</script>